package com.yupi.springbootinit.service;

import com.yupi.springbootinit.model.dto.orders.OrderCreateRequest;
import com.yupi.springbootinit.model.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.springbootinit.model.entity.User;
import com.yupi.springbootinit.model.vo.OrdersVO;
import com.yupi.springbootinit.model.vo.UserVO;

import java.util.List;

/**
 *
 */
public interface OrdersService extends IService<Orders> {

    /**
     * 创建订单
     * @param orderCreateRequest
     * @param loginUser
     * @return
     */
    Long crateOrder(OrderCreateRequest orderCreateRequest, UserVO loginUser);

    /**
     * 查询我创建的订单
     * @param loginUser
     * @return
     */
    List<OrdersVO> queryMyOrders(UserVO loginUser);
}
